package com.example.system.mapper;

import com.example.system.domain.UserLogin;
import com.example.system.model.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


    @Select("select *from sys_login where sys_name= #{name} and sys_password=#{password}")
    public UserLogin findByUser(String name, String password);

}